import React from 'react'
import loadable from "./components/util/loadable";
import Head from './components/Head.jsx'
import Bottom from "./components/Bottom";
import {BackTop} from 'antd'
import './assets/css/style.scss'
import {Route, Switch} from 'react-router-dom'


export default class App extends React.Component {
    render() {
        return (
            <div className='appBody'>
                <Head/>
                <Switch>
                    <Route path='/' component={loadable(() => import('./components/Home'))} exact></Route>
                    <Route path='/about' component={loadable(() => import('./components/About'))} exact></Route>
                </Switch>
                <Bottom/>
                <BackTop/>
            </div>
        );
    }
}
